<#assign s=JspTaglibs["/WEB-INF/tld/struts-tags.tld"] />
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<#import "/WEB-INF/tpl/public/DetailHead.ftl" as dHead> <@dHead.detailHead title="部门管理">
<link rel="stylesheet" type="text/css" href="${c}/css/${USER_SESSION.theme}/ui.jqgrid.css" />
<link rel="stylesheet" type="text/css" href="${c}/js/ztree/zTreeStyle.css" />
<script language="javascript" src="${c}/js/ui/i18n/grid.locale-cn.js"></script>
<script language="javascript" src="${c}/js/ui/jquery.jqGrid.min.js"></script>
<script language="javascript" src="${c}/js/ui/jquery.ui.accordion.min.js"></script>
<script language="javascript" src="${c}/js/ztree/jquery.ztree-2.6.min.js"></script>
<script language="javascript" src="${c}/js/core/base.js"></script>
<script language="javascript" src="${c}/js/core/department_tree.js"></script>
<script language="javascript" src="${c}/js/oa/system/department-edit.js"></script>
</@dHead.detailHead>
<body>

<#import "/WEB-INF/tpl/public/DetailContent.ftl" as dc>
<@dc.detailContent title="部门设置">
<@s.form id="departmentForm" name="form1" action="saveDepartment.action" method="post">
<table align="center" width="100%">
	<tr>
		<td colspan="7" class="subtitle">部门信息</td>
		<@s.hidden name="edit" id="edit_flag"/>
	</tr>
	<tr>
		<td width="15%" class="label">部门编码(<font color="red">*</font>):</td>
		<td width="35%"><#if edit==false><@s.textfield name="department.department_code"
		id="department_code" maxlength="20"/>&nbsp;<span id="department_code_msg" style="color:red"></span>
		<#else><@s.textfield name="department.department_code" id="department_code" readonly="true"/></#if></td>
		<td width="15%" class="label">部门名称(<font color="red">*</font>):</td>
		<td><@s.textfield id="department_name" name="department.department_name" maxlength="20"/>&nbsp;<span id="department_name_msg" style="color:red"></span></td>
	</tr>
	<tr>
		<td width="15%" class="label">上级部门:</td>
		<td>
		<#if edit==false>
		<@s.hidden name="department.parent_code" id="parent_code"/>
		<@s.textfield name="department.parent_name" readonly="true" id="parent_name" maxlength="20" onclick="showMenu('parent_name'); return false;"/>
			&nbsp;<a id="menuBtn" href="#" onclick="showMenu('parent_name'); return false;">选择</a>
		<#else>
		<@s.hidden name="department.parent_code" id="parent_code"/>
		<@s.textfield name="department.parent_name" readonly="true" id="parent_name" maxlength="20"/>
		</#if>&nbsp;<span id="parent_code_msg" style="color:red"></span>
		</td>
	</tr>
	<tr>
		<td width="15%" class="label">部门联系人:</td>
		<td width="35%"><@s.textfield name="department.contact_user" id="contact_user" maxlength="20"/>&nbsp;<span id="contact_user_msg" style="color:red"></span></td>
		<td width="15%" class="label">部门联系电:</td>
		<td><@s.textfield name="department.contact_phone" id="contact_phone" maxlength="20"/>&nbsp;<span id="contact_phone_msg" style="color:red"></span></td>
	</tr>
	<tr>
		<td width="15%" class="label">部门介绍:</td>
		<td colspan="3"><@s.textarea name="department.description" style="height:100px" id="description" maxlength="1024"/></td>
	</tr>
</table>
<div class="action" align="center">
<input type="button" value="保存" id="saveDepartmentButt"/>&nbsp;&nbsp;
<input type="button" value="取消" onClick="window.close()"/>&nbsp;&nbsp;</div>
</@s.form>
</@dc.detailContent>
<div id="DropdownMenuBackground" style="display:none; position:absolute; height:200px; min-width:150px; background-color:white;border:1px solid;overflow-y:auto;overflow-x:auto;">
	<ul id="dropdownMenu" class="tree"></ul>
</div>
</body>
</html>